package com.ruoyi.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.domain.T03;
import com.ruoyi.domain.T03EyVO;
import com.ruoyi.service.IT03Service;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/kkd/T03")
public class otherController {
    @Autowired
    private IT03Service t03Service;

    @GetMapping("/getInfo/{F0301}")
    @ApiOperation("查询公司剩余量")
    public AjaxResult getInfo(@PathVariable Long F0301) {
        T03 t03 =t03Service.selectT03ByF0301(F0301);
        T03EyVO t03EyVO = new T03EyVO();
        t03EyVO.setF0303(t03.getF0303());
        t03EyVO.setF0310(t03.getF0310());
        return AjaxResult.success(t03EyVO);
    }
    @ApiOperation("获取单价")
    @GetMapping("/getPrice/{F0301}")
    public AjaxResult getPrice(@PathVariable Long F0301) {
        return AjaxResult.success(t03Service.selectT03ByF0301(F0301).getF0306());
    }
}
